home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: conklin@kaleida.com (J.T. Conklin)
-
- I am unable to determine the "proper" behavior of the expr program
- from all of the specifications availiable to me (various man pages,
- and the X/Open Portability Guides).
-
- All of the man pages contain something like this:
-
- expr | expr
- Return the first expr if it is neither NULL nor 0, otherwise
- returns the second expr.
-
- expr & expr
- Return the first expr if neither expr is NULL or 0, otherwise
- returns 0.
-
- Since expr will coerce a string into an interger in other contexts, I
- am wondering if a string like 0000 should be interpreted as zero? All
- of the implementations (that worked at all) I've tried do not.
-
- I've patched the broken versions (386BSD & GNU) to the traditional
- behavior, but I'm curious to know if the traditional behavior is
- actually incorrect.
-
- --
- J.T. Conklin <jtc@wimsey.com> | Your source for floppy distributions
- Winning Strategies, Inc. | of the 386BSD OS and binaries
- 61 Crestwood Drive #18 |
- Daly City, CA 94015 | Send e-mail for complete product list
-
-
-
- Volume-Number: Volume 31, Number 37
-
-